mobileOrientationLocked
Type
function
Summary
Queries the current lock state.
Syntax
mobileOrientationLocked()
Description
Use the mobileOrientationLocked function to query the current orientation lock state.
The mobileOrientationLocked function tests if the current orientation is locked. This may be while your application is performing a task and you do not want the orientation to change until the task is complete.
The orientation lock can be nested, and when an unlock request causes the nesting to return to zero, the interface rotates to match the device's current orientation (assuming it is in the set of allowed orientations).
Examples
answer mobileOrientationLocked() with "Okay"
Related
command: mobileSetAllowedOrientations, mobileUnlockOrientation
function: mobileAllowedOrientations, mobileDeviceOrientation, mobileOrientation
message: orientationChanged
Compatibility and Support
Introduced
LiveCode 4.5.3
OS
ios
android
Platforms
mobile